<!--{inc(header.view.html)}-->

<div class="content" id="content">
	<div class="top-menu-box">
    	<div class="z">
            <span class="z-f"><a href="#">系统维护</a>&nbsp;&gt;</span>
            <span class="z-f"><a href="#">备份数据库</a></span>
            <div class="z-f-r"><span class="user-t"><a href="{$site_url}"  target="_blank">网站首页</a></span><span class="user-info"></span><a href="index.php?app=default&act=quit" onClick="return confirm('确认退出管理系统吗？');"   >退出管理</a></div>
        </div>
        <div class="top-menu">
        	<ul>			
                	
			    <li><a href="index.php?app=database&act=optimize" target="mainframe">数据库优化</a></li>
<li class="current"><a href="#" >备份数据库</a></li>
			    <li><a href="index.php?app=database&act=restore" target="mainframe">数据库恢复</a></li>
			    <li><a href="index.php?app=database&act=sql" target="mainframe">数据库操作</a></li>	
				
            </ul>
            <div class="clear"></div>
        </div>
    </div>
    
    <div class="main">

<form method="post" name="myform" action="?app=database&act=backup&task=backup">
    <table  class="data" >
        <thead>
									   
	<th><input name='chkall' type='checkbox' id='chkall' onclick='checkall(this.form)' value='check' checked></th>
	<th>数据表</th>
	<th>记录数</th>
	<th>(Total: <font color="#FF0000">{$totalsize}</font>M)</th>
										   
			
        </thead>
	    <tbody>
<!--{if (count($bktables))}-->
                                 
<!--{foreach($bktables as $_key => $_value )}-->                                    

<tr class="{$color} td_line" height="20">
    <td align="center"><input type="checkbox" name="tables[]" value="{$_value}" checked /></td>
    <td>{$_value}</td>
    <td>&nbsp;{$bkresults.$_key}</td>
	<td>&nbsp;{$size.$_key} M</td>
</tr>

<!--{/foreach}-->

<!--{/if}--> 
 

  <tr>
    <td colspan="5" align="center">单个备份SQL文件大小<input type="text" name="sizelimit" value="2048" size=5> K <input type="submit" class="buton" value="执行备份" ></td>
  </tr> 
			
			
	    </tbody>
    </table>
</form> 	
 <script type="text/javascript">
function checkall(form) {
	for(var i = 0;i < form.elements.length; i++) {
		var e = form.elements[i];
		if (e.name != 'chkall' && e.disabled != true) {
			e.checked = form.chkall.checked;
		}
	}
}
</script> 
	
        
        <div class="notic"><img  src="{$web_view_dir}style/images/light.gif" align="absmiddle" /> <b>提示: </b> <span > 此操作将会将数据库结构以及数据全部备份,您可以根据您的需求设定单个数据备份文件的大小。</span>	</div>
    </div>
</div>
<!--{inc(footer.view.html)}-->